﻿@{
    Layout = null;

}
@model LeEdu.MODEL.ClassTable

<!DOCTYPE html>

<html>
<!-- 网页头部分布视图 -->
@Html.Partial("~/Views/Shared/HouTai_Header.cshtml")
<body>
    <!-- 网页导航菜单分布视图 -->
    @Html.Partial("~/Views/Shared/HouTai_DaoHang.cshtml")
    <!--点击关闭隐藏div-->
    <script type="text/javascript">
        $(function(){
         $("#showable-close").click(function () {
             $('#cang').hide();
         });
         $("#showable-open").click(function () {
             $('#cang').show();
         });
        })
           
    </script>
    <div class="container">
        <div class="row">

            <!-- 网页头部分布视图 -->
            @Html.Partial("~/Views/Shared/ClassManage_Left_Menu.cshtml")

            <div class="col-md-10">
                <div class="panel panel-default panel-col">
                    <div class="panel-heading">基本信息</div>
                    <div class="panel-body">

                        <form data-widget-cid="widget-0" class="form-horizontal" action="/Class/ClassBasic" method="post" id="classroom-set-form" novalidate="novalidate">
                            @Html.Hidden("ClassTableId", Model.ClassTableId)
                            @Html.Hidden("CTPrice", Model.CTPrice)

                            @Html.Hidden("ClassCreateTime", DateTime.Now)
                            @Html.Hidden("ClassReTime", DateTime.Now)
                            @Html.Hidden("ClassPicture", Model.ClassPicture)
                            @Html.Hidden("ClassReNumber", Model.ClassReNumber)
                            @Html.Hidden("ClassState", Model.ClassState)
                            @Html.Hidden("StudentNumber", Model.StudentNumber)
                            @Html.Hidden("CoursesNumber", Model.CoursesNumber)
                            @Html.Hidden("AddStuTime", DateTime.Now)


                            <div class="row form-group">
                                <div class="col-md-2 control-label">
                                    <label for="title">训练营名称</label>
                                </div>
                                <div class="controls col-md-8">
                                    <input data-explain="" data-widget-cid="widget-1" name="CTName" id="title" class="form-control" value="@Model.CTName" type="text">
                                    <div class="help-block" style="display:none;"></div>
                                </div>
                            </div>
                            <div class="row form-group">
                                <div class="col-md-2 control-label">
                                    <label>简介</label>
                                </div>
                                <div class="col-md-8 controls">
                                    
                                    <script id="container" name="CTAbout" type="text/plain">
                                    </script>
                                    <script type="text/javascript">
                                        var editor = UE.getEditor('container')
                                    </script>
                                </div>
                            </div>

                            <div class="row form-group">
                                <div class="col-md-2 control-label">
                                    <label>训练营展示</label>
                                </div>
                                <div class="col-md-8 controls radios">
                                    <label>
                                        <input checked="checked" id="showable-open" name="CTShow" value="1" data-showable="1" type="radio"> 开启
                                    </label>
                                    <label>
                                        <input id="showable-close" name="CTShow" value="0" type="radio"> 关闭
                                    </label>
                                    <div class="help-block">关闭后，训练营将彻底隐藏，无法在前台查看到。</div>
                                </div>
                            </div>
                            <div class="row form-group" id="cang">
                                <div id="buyable">
                                    <div class="col-md-2 control-label">
                                        <label>训练营购买</label>
                                    </div>
                                    <div class="col-md-8 controls radios">
                                        <label>
                                            <input checked="checked" id="buyable-open" name="CTBuy" value="1" data-buyable="1" type="radio"> 开启
                                        </label>
                                        <label>
                                            <input id="buyable-close" name="CTBuy" value="0" type="radio"> 关闭
                                        </label>
                                        <div class="help-block">关闭后训练营将无法在线购买加入。</div>
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-md-2 control-label">分类</label>
                                <div class="col-md-8 controls">

                                    <select id="CollegeId" name="CollegeId" required="required" class="form-control width-input width-input-large">

                                        @foreach (var item in ViewBag.CollegeId as List<LeEdu.MODEL.College>)
                                        {
                                            <option value="@item.CollegeId">@item.CollegeName</option>
                                        }
                                    </select>
                                    <div class="help-block" style="display:none;"></div>
                                </div>
                            </div>
                            <div class="row form-group">
                                <div class="col-md-2 control-label"></div>
                                <div class="controls col-md-8">
                                    <button type="submit" class="btn btn-primary" id="classroom-save">提交</button>
                                </div>
                            </div>
                            <input name="_csrf_token" value="5806f0a99015a07cb1e6075d0b479191b9031925" type="hidden">
                        </form>
                    </div>
                </div>
            </div>
        </div>



    </div>

    <script>
        var app = {};
        app.debug = false;
        app.version = '6.9.3';
        app.httpHost = 'http://www.zhishile.com';
        app.basePath = '';
        app.theme = 'jianmo';
        app.themeGlobalScript = 'theme/global-script';
        app.jsPaths = { "common": "common", "theme": "\/themes\/jianmo\/js", "customwebbundle": "\/bundles\/customweb\/js", "customadminbundle": "\/bundles\/customadmin\/js", "topxiawebbundle": "\/bundles\/topxiaweb\/js", "topxiaadminbundle": "\/bundles\/topxiaadmin\/js", "classroombundle": "\/bundles\/classroom\/js" };
        app.crontab = '/common/crontab';

        var CKEDITOR_BASEPATH = app.basePath + '/assets/libs/ckeditor/4.6.7/';
        app.config = { "api": { "weibo": { "key": "" }, "qq": { "key": "" }, "douban": { "key": "" }, "renren": { "key": "" } }, "cloud": { "video_player": "http:\/\/cdn.staticfile.org\/GrindPlayerCN\/1.0.2\/GrindPlayer.swf", "video_player_watermark_plugin": "http:\/\/cdn.staticfile.org\/GrindPlayerCN\/1.0.2\/Watermake-1.0.3.swf", "video_player_fingerprint_plugin": "http:\/\/cdn.staticfile.org\/GrindPlayerCN\/1.0.2\/Fingerprint-1.0.1.swf" }, "loading_img_path": "\/assets\/img\/default\/loading.gif?6.9.3" };
        app.arguments = {};
        app.controller = 'user/list';

        app.scripts = null;

        app.uploadUrl = '/file/upload';
        app.imgCropUrl = '/file/img/crop';
        app.lessonCopyEnabled = '0';
        app.mainScript = '/bundles/topxiaadmin/js/admin-app.js?6.9.3';
    </script>
    <script src="/Content/js/sea.js?6.9.3"></script>
    <script src="/Content/js/seajs-style.js?6.9.3"></script>
    <script src="/Content/js/seajs-global-config.js?6.9.3"></script>
    <script>
        seajs.use(app.mainScript);
    </script>  <div id="modal" class="modal"></div>
    <div class="fixed-bar">
        <a href="/admin/feedback" target='_blank' class="icon-question-text feedback">
            <i class="es-icon es-icon-help"></i>
            <span>产品<br />反馈</span>
        </a>
    </div>
</body>

</html>
